﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <div ng-app="myApp">
        <runoob-directive></runoob-directive>

    </div>
    <script type="text/javascript" src="Scripts/angular.js"></script>
    <script type="text/javascript">
        var app = angular.module("myApp"[]);
        app.directive("runoobDirective", function () {
            return {
                template :"<h1>自定义指令!</h1>"
            }
        });
    </script>
</body>
</html>